<?php
namespace app\index\model;
use app\common\model\Base;

class TixianList extends Base
{
    ////插入提现信息
    public function setDrawInfo($username,$amount,$ztin,$tixiantime,$login_ip,$caadmin) {
        $res = TixianList::name('tixian_list')
        ->bind(['username'=>$username,'txje'=>$amount,'zt'=>$ztin,'ifck'=>$ztin,'txtime'=>$tixiantime,'txip'=>$login_ip,'czadmin'=>$caadmin,'shadmin'=>$caadmin,'nbzh'=>$ztin])
        ->insert(['username'=>':username','txje'=>':txje','zt'=>':zt','ifck'=>':ifck','txtime'=>':txtime','txip'=>':txip','czadmin'=>':czadmin','shadmin'=>':shadmin','nbzh'=>':nbzh']);
        return $res;
    }
    
}
